<?php $this->beginWidget('zii.widgets.jui.CJuiDialog', array(
    'id'=>'pasteOptions',
    'options'=>array(
        'title'=>$title,
        'autoOpen'=>true,
        'modal'=>true,
        'resizable'=>false
    ),
)); ?>

<div id="form">
    <?php $form=$this->beginWidget('CActiveForm', array(
        'id'=>'pasteOptionsForm',
        'enableAjaxValidation'=>false,
    )); ?>
    <?php echo $form->errorSummary($model); ?>

    <div class="row">
        <?php echo $form->textField($model, 'name', array()); ?>
    </div>
    <br />
    <div class="row">
        <?php $model->pasteOption='replace'; ?>
        <?php echo $form->radioButtonList($model, 'pasteOption', array(
            'replace'=>$option[0],
            'remove'=>$option[1],
            'skip'=>$option[2],
        ))?>
    </div>
    <br />
    <div class="row">
        <?php echo $form->checkBox($model, 'pasteAll', array()); ?> Применить для всех
    </div>
    <br />
    <div class="row buttons">
        <?php echo CHtml::submitButton('Вставить', array('name'=>'paste')); ?>
    </div>

    <?php $this->endWidget(); ?>
</div>

<?php $this->endWidget('zii.widgets.jui.CJuiDialog'); ?>